﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QuanLyBanHang_NewApp.Entity
{
    public class NhanVien
    {
        private string hoten;
        private long MaNV;
        private int quyen;
        private long luong;
        private string diachi;
        private string sodt;
        private string taikhoan;
        private string matkhau;

        public NhanVien(long _manv,string _hoten,long _luong,string _diachi, string _sodt, string _taikhoan, string _matkhau,int _quyen)
        {
            hoten = _hoten;
            MaNV = _manv;
            quyen = _quyen;
            luong = _luong;
            diachi = _diachi;
            sodt = _sodt;
            taikhoan = _taikhoan;
            matkhau = _matkhau;
        }

        public NhanVien()
        {

        }
        //public string getName()
        //{
        //    return hoten;
        //}
        //public int getQuyen()
        //{
        //    return quyen;
        //}

        public string getAttribute(int index)
        {
            switch (index)
            {
                case 0: return MaNV.ToString();
                case 1: return hoten;
                case 2: return luong.ToString();
                case 3: return diachi;
                case 4: return sodt;
                case 5: return taikhoan;
                case 6: return matkhau;
                case 7: return quyen.ToString();
                default: return "!error";
            }
        }

    }
}
